{if isset($team->bugSets)}
    {foreach $team->bugSets as $bugs^}
    {/foreach}
    <div>
    </div>
{/if}